package com.edu.scau.service;

import java.util.List;

import com.edu.scau.dao.util.CommodityPage;
import com.edu.scau.entity.Commodity;

public interface ICommodityQueryService {

	//----------------------------
	public List<Commodity> queryCommodityAll(CommodityPage page);
	public List<Commodity> queryCommodityAll();
	public int queryNumCommodityAll();
	//------------------------------
	public List<Commodity> queryCommodityByClassification(String classification,CommodityPage page);
	public List<Commodity> queryCommodityByClassification(String classification);
	public int queryNumCommodityByClassification(String classification);
	//-----------------------------
	public List<Commodity> queryCommodityById(int id,CommodityPage page);
	public List<Commodity> queryCommodityById(int id);
	public int queryNumCommodityById(int id);
	//----------------------
	public List<Commodity> queryCommodityByName(String name,CommodityPage page);
	public List<Commodity> queryCommodityByName(String name);
	public int  queryNumCommodityByName(String name);
	//-------------------------------
	public List<Commodity> queryCommodityByPrice(double beginPrice,double endPrice,CommodityPage page);
	public List<Commodity> queryCommodityByPrice(double beginPrice,double endPrice);
	public int queryNumCommodityByPrice(double beginPrice,double endPrice);
	//--------------------------
	public List<Commodity> queryCommodityByLikeName(String likeName,CommodityPage page);
	public List<Commodity> queryCommodityByLikeName(String likeName);
	public int  queryNumCommodityByLikeName(String likeName);
	
	
	
	
	
	
	
}
